import request from '@/utils/request'

// 查询就诊类型表列表
export function listRegistrationtype(query) {
  return request({
    url: '/outpatient/registrationtype/list',
    method: 'get',
    params: query
  })
}

// 查询就诊类型表详细
export function getRegistrationtype(registrationtypeId) {
  return request({
    url: '/outpatient/registrationtype/' + registrationtypeId,
    method: 'get'
  })
}

// 新增就诊类型表
export function addRegistrationtype(data) {
  return request({
    url: '/outpatient/registrationtype',
    method: 'post',
    data: data
  })
}

// 修改就诊类型表
export function updateRegistrationtype(data) {
  return request({
    url: '/outpatient/registrationtype',
    method: 'put',
    data: data
  })
}

// 删除就诊类型表
export function delRegistrationtype(registrationtypeId) {
  return request({
    url: '/outpatient/registrationtype/' + registrationtypeId,
    method: 'delete'
  })
}
